﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_CM_GetAllCooperater]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_CM_GetAllCooperater];
GO
CREATE PROCEDURE [dbo].[sproc_CM_GetAllCooperater]

AS
    SELECT UDS_Staff.Staff_ID,UDS_Staff.Staff_Name,UDS_Staff.RealName,UDS_CM_ClientContact_Cooperatingman.ContactID FROM UDS_CM_ClientContact_Cooperatingman,UDS_Staff 
    WHERE UDS_CM_ClientContact_Cooperatingman.CooperatingmanID=UDS_Staff.Staff_ID